/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import cn.mcsys.myadmin.common.persistence.DataEntity;

/**
 * 客户管理Entity
 * @author leopold
 * @version 2018-08-13
 */
public class AirClient extends DataEntity<AirClient> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 前台用户昵称
	private String sex;		// 性别
	private String phone;		// 电话
	private String idNumber;		// 身份证号
	
	public AirClient() {
		super();
	}

	public AirClient(Integer id){
		super(id);
	}

	@Length(min=0, max=64, message="前台用户昵称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=6, message="性别长度必须介于 0 和 6 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=16, message="电话长度必须介于 0 和 16 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=32, message="身份证号长度必须介于 0 和 32 之间")
	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	
}